package sv.gob.mh.dgii.model;

// Generated Dec 12, 2007 1:25:05 PM by Hibernate Tools 3.2.0.CR1

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * EdVariablesFormulario generated by hbm2java
 */
@Entity
@Table(name = "ED_VARIABLES_FORMULARIO", schema = "EDADEPUDOC")
public class EdVariablesFormulario implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3885227796008205575L;
	private EdVariablesFormularioId id;
	private TbFormulariosVersiones tbFormulariosVersiones;
	private String ddescripcion;
	private Integer norden;
	private String ctipo;
	private String snotas;
	private String xexpresion;
	private String mtipoResultado;
	private String svalorOmision;
	private String maccionError;

	public EdVariablesFormulario() {
	}

	public EdVariablesFormulario(EdVariablesFormularioId id,
			TbFormulariosVersiones tbFormulariosVersiones) {
		this.id = id;
		this.tbFormulariosVersiones = tbFormulariosVersiones;
	}

	public EdVariablesFormulario(EdVariablesFormularioId id,
			TbFormulariosVersiones tbFormulariosVersiones, String ddescripcion,
			Integer norden, String ctipo, String snotas, String xexpresion,
			String mtipoResultado, String svalorOmision, String maccionError) {
		this.id = id;
		this.tbFormulariosVersiones = tbFormulariosVersiones;
		this.ddescripcion = ddescripcion;
		this.norden = norden;
		this.ctipo = ctipo;
		this.snotas = snotas;
		this.xexpresion = xexpresion;
		this.mtipoResultado = mtipoResultado;
		this.svalorOmision = svalorOmision;
		this.maccionError = maccionError;
	}

	@EmbeddedId
	@AttributeOverrides( {
			@AttributeOverride(name = "cformulario", column = @Column(name = "C_FORMULARIO", nullable = false, precision = 4, scale = 0)),
			@AttributeOverride(name = "cversion", column = @Column(name = "C_VERSION", nullable = false, precision = 4, scale = 0)),
			@AttributeOverride(name = "cvariable", column = @Column(name = "C_VARIABLE", nullable = false, length = 25)) })
	public EdVariablesFormularioId getId() {
		return this.id;
	}

	public void setId(EdVariablesFormularioId id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumns( {
			@JoinColumn(name = "C_FORMULARIO", referencedColumnName = "C_FORMULARIO", nullable = false, insertable = false, updatable = false),
			@JoinColumn(name = "C_VERSION", referencedColumnName = "C_VERSION", nullable = false, insertable = false, updatable = false) })
	public TbFormulariosVersiones getTbFormulariosVersiones() {
		return this.tbFormulariosVersiones;
	}

	public void setTbFormulariosVersiones(
			TbFormulariosVersiones tbFormulariosVersiones) {
		this.tbFormulariosVersiones = tbFormulariosVersiones;
	}

	@Column(name = "D_DESCRIPCION", length = 60)
	public String getDdescripcion() {
		return this.ddescripcion;
	}

	public void setDdescripcion(String ddescripcion) {
		this.ddescripcion = ddescripcion;
	}

	@Column(name = "N_ORDEN", precision = 5, scale = 0)
	public Integer getNorden() {
		return this.norden;
	}

	public void setNorden(Integer norden) {
		this.norden = norden;
	}

	@Column(name = "C_TIPO", length = 1)
	public String getCtipo() {
		return this.ctipo;
	}

	public void setCtipo(String ctipo) {
		this.ctipo = ctipo;
	}

	@Column(name = "S_NOTAS")
	public String getSnotas() {
		return this.snotas;
	}

	public void setSnotas(String snotas) {
		this.snotas = snotas;
	}

	@Column(name = "X_EXPRESION", length = 4000)
	public String getXexpresion() {
		return this.xexpresion;
	}

	public void setXexpresion(String xexpresion) {
		this.xexpresion = xexpresion;
	}

	@Column(name = "M_TIPO_RESULTADO", length = 1)
	public String getMtipoResultado() {
		return this.mtipoResultado;
	}

	public void setMtipoResultado(String mtipoResultado) {
		this.mtipoResultado = mtipoResultado;
	}

	@Column(name = "S_VALOR_OMISION")
	public String getSvalorOmision() {
		return this.svalorOmision;
	}

	public void setSvalorOmision(String svalorOmision) {
		this.svalorOmision = svalorOmision;
	}

	@Column(name = "M_ACCION_ERROR", length = 1)
	public String getMaccionError() {
		return this.maccionError;
	}

	public void setMaccionError(String maccionError) {
		this.maccionError = maccionError;
	}

}
